/******** 节点样式 ***********/
.vue-flow__handle {
    width: 12px;
    height: 20px;
    border-radius: 4px;
    box-shadow: inset 0px 0px 0 1px #fff;
}
.vue-flow__handle.source {
    border: 2px solid #5822d9;
    background: #5822d9;
}
.vue-flow__handle[data-handleid="success"].source, .vue-flow__handle.handle_success.source {
    border: 2px solid #22d928;
    background: #22d928;
}
.vue-flow__handle[data-handleid="fail"].source {
    border: 2px solid #d94422;
    background: #d94422;
}

.vue-flow__handle.intention.source, .vue-flow__handle.handle_warn.source {
    border: 2px solid #d98d22;
    background: #d98d22;
}

.vue-flow__handle.target {
    width: 16px;
    height: 16px;
    border-radius: 100%;
    border: 2px solid #5822d9;
    background: #5822d9;

}

/* tooltip的基础样式 */
.node_tooltip {
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);

    /* 样式设置 */
    min-width: 120px;
    max-width: 250px;
    padding: 8px 12px;
    border-radius: 6px;

    /* 文字样式 */
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;

    /* 背景样式 */
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);

    /* 动画效果 */
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* 添加小三角箭头 */
.node_tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
